<form id="app-form" class="layui-form layuimini-form">
    <input type="hidden" name="group_name" value="user">
    <div class="layui-form-item">
        <label class="layui-form-label required">手续费类型</label>
        <div class="layui-input-block">
            {foreach ['固定','百分比'] as $key=>$val}
            <input type="radio" name="charge_type" lay-filter="charge_type" value="{$key}" title="{$val}" {if $key==sysconfig('user','charge_type')}checked="" {/if}>
            {/foreach}
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">手续费</label>
        <div class="layui-input-block">
            <input type="text" name="charge" class="layui-input" lay-verify="required" placeholder="请输入手续费" value="{:sysconfig('user','charge')}">
            <tip>例：固定按次扣除，百分比按提现金额扣除</tip>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">最低提现金额</label>
        <div class="layui-input-block">
            <input type="text" name="min_withdraw_money" class="layui-input" lay-verify="required" placeholder="请输入最低提现金额" value="{:sysconfig('user','min_withdraw_money')}">
            <tip>低于此金额不可提现</tip>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">每组司机展示个数</label>
        <div class="layui-input-block">
            <input type="text" name="driver_num" class="layui-input" lay-verify="required" placeholder="请输入每组司机展示个数" value="{:sysconfig('user','driver_num')}">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">用户免费刷新次数</label>
        <div class="layui-input-block">
            <input type="text" name="refresh_num" class="layui-input" lay-verify="required" placeholder="请输入用户免费刷新次数" value="{:sysconfig('user','refresh_num')}">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">刷新司机冷却时间</label>
        <div class="layui-input-block">
            <input type="text" name="cooling_time" class="layui-input" lay-verify="required" placeholder="请输入刷新司机冷却时间" value="{:sysconfig('user','cooling_time')}">
            <tip>以分钟为单位</tip>
        </div>
    </div>

    <div class="hr-line"></div>
    <div class="layui-form-item text-center">
        <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit="system.config/save" data-refresh="false">确认</button>
        <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
    </div>

</form>